
<script type="text/jsx">
import render from '@/utils/render'
function formItem(h,element,value) {
  return (
      <el-col span={element.span}>
        <el-form-item label={element.label} label-width={element.labelWidth ? `${element.labelWidth}px` : null}>
          <render key={element.renderKey} conf={element} value={value} onInput={ event => {
            // this.$set(element, 'defaultValue', event)
            this.$emit("input",  event)
          }}/>
        </el-form-item>
      </el-col>
  );
}

export default {
  name: "CustomFormItem",
  data() {
    return {}
  },
  methods:{
  },
  props: [
    'element','value'
  ],
  render(h) {
    return formItem.call(this,h,this.element,this.value)
  }
}
</script>

<style scoped>

</style>
